if ( strcmp( fmp->key, "PATH_DISTANCE_MILES") == 0) {
/* Ignored on input */
} else
+ if ( strcmp( fmp->key, "HEART_RATE") == 0) {
+ wpt->heartrate = atoi(s);
+ }
if ( strcmp( fmp->key, "PATH_DISTANCE_KM") == 0 ) {
/* Ignored on input */
} else {
writebuff( buff, fmp->printfc, wpt->course );
} else
+ /* HEART RATE CONVERSION***********************************************/
+ if (strcmp(fmp->key, "HEART_RATE") == 0) {
+ writebuff(buff, fmp->printfc, wpt->heartrate);
+ } else
/* TIME CONVERSIONS**************************************************/
if (strcmp(fmp->key, "EXCEL_TIME") == 0) {
/* creation time as an excel (double) time */
float speed; /* Optional: meters per second. */
fix_type fix; /* Optional: 3d, 2d, etc. */
int sat; /* Optional: number of sats used for fix */
-
+
+ int heartrate; /* Beats per minute: likely to get moved to fs. */
geocache_data gc_data;
format_specific_data *fs;
void *extra_data; /* Extra data added by, say, a filter. */
wpt->longitude = array[i]->lon;
wpt->latitude = array[i]->lat;
wpt->altitude = array[i]->alt;
+ wpt->heartrate = array[i]->heartrate;
wpt->shortname = xstrdup(array[i]->trk_ident);
wpt->creation_time = array[i]->Time;
ALT_METERS is identical to ALT_FEET with the exception that the altitude
is in METERS.
+ o HEART_RATE
+ Heart rate, measured in beats per minute. Only valid for units with
+ heart rate monitor features (i.e. Garmin Forerunner 301).
+
+ example: IFIELD HEART_RATE,"","%d"
+
o EXCEL_TIME
EXCEL_TIME is the waypoint's creation time, if any. This is actually
the decimal days since 1/1/1900 and is handled internally as a DOUBLE